Skip to content

Conversation

kaisecheng
Copy link

jruby users are not able to use env variable to setup proxy with basic authentication because the RUBY_PLATFORM does not allow java.
The commit includes java as a valid platform.

expected behaviour

  1. export JRUBY_OPTS='-J-Dhttps.proxyHost=user:pw@host -J-Dhttps.proxyPort=3128 -J-Dhttp.proxyHost=user:pw@host -J-Dhttp.proxyPort=3128'
  2. ruby -e "require 'net/http'; uri = URI('https://www.google.com'); Net::HTTP.get(uri);"
  3. no error is thrown

Fixed: #68

@hsbt hsbt closed this Sep 28, 2022
@hsbt
Copy link
Member

hsbt commented Sep 28, 2022

@kaisecheng Thanks, But this condition has been removed at #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail to fetch proxy user/pw from env variable
2 participants